#!/usr/bin/env python
# encoding: utf-8
# Date: 2017-06-19 09:04:25
# file:models.py
# Email: wang521kang@outlook.com
# Author: 王康

from django.conf import settings
from django.db import models


class Address(models.Model):
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
    name = models.CharField(max_length=255, verbose_name=u'收货人')
    phone = models.CharField(max_length=255, verbose_name=u'电话')
    add_province = models.CharField(max_length=255, verbose_name=u'省地址')
    add_city = models.CharField(max_length=255, verbose_name=u'市地址')
    add_district = models.CharField(max_length=255, verbose_name=u'区地址')
    add_detail = models.CharField(max_length=255, verbose_name=u'详细地址')
    is_active = models.BooleanField(default=True, verbose_name=u'是否已删除')
    is_default = models.BooleanField(default=False, verbose_name=u'是否默认')
